<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $name='user';
        $this->assign('name',$name);
        $this->display('index');
    }
    public function test(){
        $name='test';
        $this->assign('name',$name);
        $this->display('index');
//        $id=M('region')->where('id=0')->select();//数据库连接测试
//        echo $id[0]['name'];
    }
}